from pymysql import connect

conn = connect("localhost","root","@2916(Maify)","userbd")
cursor = conn.cursor()
sql = "select * from useradmin"
read_row = cursor.execute(sql)

login_information = cursor.fetchall()

def panduan_login(name,password):
	for item in login_information:
# 		print(item[1],item[2])
		if  item[1] == name and item[2] == password:
			return "true"
			

# if __name__ == '__main__':
# 	panduan_login()